using System;

public static class PublicEventCenter
{
    static private EventTrigger trigger = new EventTrigger("PublicEventCenter");

    public static void AddListener(string eventName, Action<object[]> action)
    {
        trigger.AddListener(eventName, action);
    }
    public static void RemoveListener(string eventName, Action<object[]> action)
    {
        trigger.RemoveListener(eventName, action);
    }
    public static void Dispatch(string eventName, object[] args)
    {
        trigger.Dispatch(eventName, args);
    }
}
